package Info;

public class Student extends Person{
    private String classnum;
    private String profession;

    public void setClassnum(String classnum) {
        this.classnum = classnum;
    }

    public void setProfession(String profession) {
        this.profession = profession;
    }
    public void  setStuInfo(String classnum,String profession){
        this.classnum=classnum;
        this.profession=profession;
    }
    public String getClassnum(){
        return classnum;
    }

    public String getProfession() {
        return profession;
    }
    public void getStudentInfo(){
        getPersonInfo();
        System.out.println("班级："+classnum);
        System.out.println("专业："+profession);
    }
}
